package game.level.tiles;

import game.entities.Player;

public class PortalTile extends BasicTile {
	private String destination;
	private int destinationX;
	private int destinationY;

	public PortalTile(int id, int x, int y, int tileColor, int levelColor,
			int destinationX, int destinationY, String destination) {
		super(id, x, y, tileColor, levelColor);
		this.destinationX = destinationX;
		this.destinationY = destinationY;
		this.destination = destination;
		this.portal = true;
	}

	public String getDestination() {
		return destination;
	}

	public void goToDestination(Player p) {
		p.teleport(destinationX, destinationY);
	}

}

